const crypto = require('crypto');

var setCrypto = (info) => {
    return crypto.createHmac('sha256', "secret")    //secret 可以修改，是个额外的加密串
        .update(info)
        .digest('hex');  //表示16
}

module.exports = {
    setCrypto
}